package com.ruoyi.pingjiao.domain;

import com.ruoyi.common.annotation.Excels;
import com.ruoyi.common.core.domain.entity.SysDept;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.annotation.Excel.Type;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.List;

/**
 * 教师管理对象 teacher
 * 
 * @author 胡浩鹏
 * @date 2022-10-15
 */
public class Teacher extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long teacherId;

    /** 工号 */
    @Excel(name = "工号")
    private String teacherNo;

    public String getDeptName() {
        return DeptName;
    }

    public void setDeptName(String deptName) {
        DeptName = deptName;
    }

    @Excel(name = "教研室")
    private String DeptName;
    /** 姓名 */
    @Excel(name = "姓名")
    private String realName;

    /** 性别 */
    @Excel(name = "性别", readConverterExp = "0=男,1=女,2=未知")
    private String gender;

    /** 学院 */
    //@Excel(name = "学院编号")
    private Long deptId;

    /** 职称 */
    @Excel(name = "职称", readConverterExp = "1=教授,2=副教授,3=讲师,4=助教")
    private String academicTitle;

    /** 外聘
     *  , readConverterExp = "'0'=外聘教师, '1'=内部教师"
     *
     *  不正常显示
     **/
    @Excel(name = "外聘", readConverterExp = "0=外聘教师,1=内部教师")
    private String internal;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    /** 成绩 */
    @Excel(name = "成绩")
    private String evaluateScore;

    /** 删除标志 */
    private String delFlag;



    /** 评教状态 */
    private String evaluateState;

    /** $column.columnComment */
    private Long userId;

    /**部门对象*/
    @Excels({
            @Excel(name = "学院名称", targetAttr = "deptName", type = Type.EXPORT),
            @Excel(name = "学院负责人", targetAttr = "leader", type = Type.EXPORT)
    })
    private SysDept dept;
    private Course course;
    private Courseclass courseclass;
    private Metaclass metaclass;
    public Course getCourse() {
        return course;
    }

    public void setCourse(Course course) {
        this.course = course;
    }

    public Courseclass getCourseclass() {
        return courseclass;
    }

    public void setCourseclass(Courseclass courseclass) {
        this.courseclass = courseclass;
    }

    private List<Courseclass> courseclassList;

    public void setTeacherId(Long teacherId) 
    {
        this.teacherId = teacherId;
    }

    public Long getTeacherId() 
    {
        return teacherId;
    }
    public void setTeacherNo(String teacherNo) 
    {
        this.teacherNo = teacherNo;
    }

    public String getTeacherNo() 
    {
        return teacherNo;
    }
    public void setRealName(String realName) 
    {
        this.realName = realName;
    }

    public String getRealName() 
    {
        return realName;
    }
    public void setGender(String gender) 
    {
        this.gender = gender;
    }

    public String getGender() 
    {
        return gender;
    }
    public void setDeptId(Long deptId)
    {
        this.deptId = deptId;
    }

    public Long getDeptId()
    {
        return deptId;
    }
    public void setAcademicTitle(String academicTitle) 
    {
        this.academicTitle = academicTitle;
    }

    public String getAcademicTitle() 
    {
        return academicTitle;
    }
    public void setInternal(String internal) 
    {
        this.internal = internal;
    }

    public String getInternal() 
    {
        return internal;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setEvaluateScore(String evaluateScore) 
    {
        this.evaluateScore = evaluateScore;
    }

    public String getEvaluateScore() 
    {
        return evaluateScore;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }
    public void setEvaluateState(String evaluateState) 
    {
        this.evaluateState = evaluateState;
    }

    public String getEvaluateState() 
    {
        return evaluateState;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public SysDept getDept() {
        return dept;
    }

    public void setDept(SysDept dept) {
        this.dept = dept;
    }

    public List<Courseclass> getCourseclassList() {
        return courseclassList;
    }

    public void setCourseclassList(List<Courseclass> courseclassList) {
        this.courseclassList = courseclassList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("teacherId", getTeacherId())
            .append("teacherNo", getTeacherNo())
            .append("realName", getRealName())
            .append("gender", getGender())
            .append("deptId", getDeptId())
            .append("academicTitle", getAcademicTitle())
            .append("internal", getInternal())
            .append("status", getStatus())
            .append("evaluateScore", getEvaluateScore())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("evaluateState", getEvaluateState())
            .append("updateTime", getUpdateTime())
            .append("userId", getUserId())
            .toString();
    }

    public Metaclass getMetaclass() {
        return metaclass;
    }

    public void setMetaclass(Metaclass metaclass) {
        this.metaclass = metaclass;
    }
}
